<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>bsm-procedure</title>
	<%@ include file="../include/common.jsp"%>
	<%@ include file="../include/jbox.jsp"%>
	<%@ include file="../include/table.jsp"%>
	<link rel="stylesheet" type="text/css"
	     href="${pageContext.request.contextPath}/style/default/bsm/selfmainten/probe.css" />
	<script type="text/javascript">
	$(function(){
		//加载grid
		var oTable=	$('#procedurelist').dataTable({
			"bProcessing": false, 
			"bServerSide": true,
			"sServerMethod": 'POST',
			"sAjaxSource":'${pageContext.request.contextPath}/selfmainten/bsm!queryProcedure.action',
			"bPaginate": false,
			"bSort": true,
			"bFilter":false,
			"bJQueryUI":false,
			"sPaginationType": "full_numbers",
			"sDom":'rt <"bottom"flpi>',
			"aoColumns":[
				{"mDataProp":"OBJECT_NAME"},
				{"mDataProp":"STATUS","bSortable": false,'fnRender':function(v){
					if(v.aData.STATUS=='VALID'){
						return "<span style='font-weight:bold;'>"+v.aData.STATUS+"</span>";
					}else{
						return "<span style='color:#ff0000;font-weight:bold;'>"+v.aData.STATUS+"</span>";
					}
				}},
				{"mDataProp":"CREATED","bSortable": false},
				{"mDataProp":"LAST_DDL_TIME","bSortable": false},
				{"mDataProp":"TIMESTAMP","bSortable": false}
			], 
			 "oLanguage": {
				 "sInfo": "共 _TOTAL_ 条记录", 
					"sInfoEmpty": "没有找到记录"
			}
	   });
	});	
  </script>
  </head>
  <body>
  
	<div>
		<table id="procedurelist"  width="99%" cellpadding="0" cellspacing="0" border="0" class="display" >
			<thead>
				<tr>
					<th width="3%">名称</th>
					<th width="2%">有效状态</th>
					<th width="3%">创建时间</th>
					<th width="2%">最后操作执行时间</th>
					<th width="2%">结构发生改变时间</th>
				</tr>
			</thead>
		</table>
	</div>
</body>
</html>
